package com.mlnx.work.pojo.vo;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.mlnx.work.enums.AccountStatusEnum;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by amanda.shan on 2020/12/29.
 */
@Data
@ApiModel("用户列表对象vo")
public class UserVo {

    private Integer id;

    @ApiModelProperty(value = "用户邮箱")
    private String username;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "所属部门ID")
    private Integer deptId;

    @ApiModelProperty(value = "所属部门名字")
    private String deptName;

    @ApiModelProperty(value = "角色列表")
    private List<UserRoleVo> userRoleVos;

    @EnumValue
    @ApiModelProperty(value = "OT(\"0\", \"未审核\"), SUCESS(\"1\", \"审核通过\"),\n" +
            "    FAIL(\"2\", \"审核失败\")")
    private AccountStatusEnum status;
}
